/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：YesNoButton.java <br>
 * 创建时间：2013-8-24 下午4:58:28 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.ui.core;

import lostland.gmud.exv2.FontSize;
import lostland.gmud.exv2.Game;
import lostland.gmud.exv2.blgframework.impl.BLGGraphics;

/**
 * 类名：YesNoButton <br>
 * 说明：
 *
 * @author 12548
 */
public class YesNoButton extends ArrowButton {

	int index;
	String S[] = {"是", "否"};

	public YesNoButton(int index) {
		super((index == 0) ? 64 + 24 : 192 + 8, 96, 24, 13);
		this.index = index;
	}

	/* （非 Javadoc）
	 * @see lostland.gmud.exv2.ui.GmudWindow#draw()
	 */
	@Override
	public void draw() {
		drawBackground();
		BLGGraphics g = (BLGGraphics) Game.getInstance().getGraphics();
		g.drawText(S[index], x + 12, y, FontSize.FT_12PX);
	}

}
